<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('预约记录详情列表')"/>
</head>
<body class="gray-bg">
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse" hidden>
            <form id="formId">
                <input id="trashRecordId" type="hidden" name="trashRecordId" th:value="${trashRecordId}">
            </form>
        </div>
        <div class="col-sm-12 select-table table-striped">
            <table id="bootstrap-table" data-mobile-responsive="true"></table>
        </div>
    </div>
</div>
<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var editFlag = [[${@permission.hasPermi('system:trashRecordDetails:edit')}]];
    var removeFlag = [[${@permission.hasPermi('system:trashRecordDetails:remove')}]];
    var prefix = ctx + "system/trashRecordDetails";
    var datas = [[${@dict.getType('sys_unit_type')}]];
    $(function () {
        var options = {
            url: prefix + "/list",
            modalName: "记录详情",
            showExport: false,
            showSearch: false,
            showRefresh: false,
            showToggle: false,
            showColumns: false,
            columns: [
                {
                    field : 'id',
                    title : '',
                    visible: false
                }, {
                    field: 'actualName',
                    title: '垃圾名称',
                    sortable: false
                },
                {
                    field: 'trashUnitType',
                    title: '类型单位',
                    sortable: false,
                    formatter: function (value, row, index) {
                        return $.table.selectDictLabel(datas, value);
                    }
                },
                {
                    field: 'num',
                    title: '数量（重量）',
                    sortable: false
                },
                {
                    field: 'money',
                    title: '环保金',
                    sortable: false
                }]
        };
        $.table.init(options);
    });
</script>
</body>
</html>